{% include 'base.html' %}
{% from 'bootstrap4/table.html' import render_table %}
{{ bootstrap.load_css() }}

<style>
    .data{
            top: 20%;
            {#border: 1px solid #000000;#}
            width: 100%;
            position: absolute;
            left: 0;
            right: 0;
            margin: 0 auto;
    }
    table th:nth-child(1)  { width:2%; }
    table th:nth-child(2)  { width:7%; }
    table th:nth-child(3)  { width:6%; }
    /*主页*/
    /* Style the header */
    header {
        background-color: #333;
        color: white;
        padding: 20px;
        text-align: center;
        font-size: 1.2em;
    }

    /* Style the navigation bar */
    nav {
        background-color: #f2f2f2;
        overflow: hidden;
    }

    nav a {
        float: left;
        color: #333;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 1.1em;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    nav a:hover {
        background-color: #ddd;
        color: black;
    }

    /* Style the footer */
    footer {
        background-color: #333F;
        color: #fff;
        text-align: center;
        padding: 20px;
        font-size: 0.8em;
        position:fixed;
        bottom:0;
        width:100%;
        height:60px;
    }
</style>

<div class="data">
    {% block content %}
        {% if message %}
            {{ render_table(message, title, table_classes='table-responsive table-striped',
            header_classes='thead-dark', model=Enterprise) }}
        {% endif %}
    {% endblock %}
</div>


